<%--
  Created by IntelliJ IDEA.
  User: hugohoo
  Date: 10/11/16
  Time: 4:43 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>add</title>

    <link rel="stylesheet" href="/public/css/materialize.min.css">

    <script src="/public/js/jquery-3.1.0.min.js"></script>
    <script src="/public/js/materialize.min.js"></script>
</head>
<body>

<jsp:useBean id="site" class="com.ooho.lesson05.mvc.model.SiteBean" scope="request" />

<div class="container">
    <h4>Edit Site:</h4>
    <form action="./edit_do/" method="post" class="col s12">
        <input type="hidden" name="id" value="<%= site.getId()%>">
        <div class="row">
            <div class="input-field col s6">
                <input autofocus="autofocus" name="title" id="Title" type="text" value="<%= site.getTitle()%>">
                <label for="Title">Title</label>
            </div>
            <div class="input-field col s6">
                <input name="url" id="URL" type="text" value="<%= site.getUrl()%>">
                <label for="URL">URL</label>
            </div>
        </div>
        <button type="submit" class="btn blue waves-effect waves-light">submit</button>
    </form>
</div>
</div>
</body>
</html>
